package com.ljf.config.web;

import com.ljf.common.exception.ServiceException;
import com.ljf.common.result.ResultModel;
import com.ljf.common.web.BasisController;
import com.ljf.config.dto.command.ConfigBaseImpulseSenderHeaderCommand;
import com.ljf.config.dto.command.ConfigDatImpulseSenderConditionCommand;
import com.ljf.config.dto.query.ConfigBaseImpulseSenderHeaderQuery;
import com.ljf.config.service.IConfigBaseImpulseSenderHeaderService;
import com.ljf.config.vo.ConfigBaseImpulseSenderHeaderVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 发号器配置表头  控制器
 *
 * @author LJF
 * @since 2025-01-09
 */
@RestController
@RequestMapping("/config/base/impulse_sender_header")
@Api(value = "发号器配置表头接口", tags = "发号器配置表头接口")
public class ConfigBaseImpulseSenderHeaderController extends BasisController<IConfigBaseImpulseSenderHeaderService, ConfigBaseImpulseSenderHeaderQuery, ConfigBaseImpulseSenderHeaderVO, ConfigBaseImpulseSenderHeaderCommand> {

    // 基本API
    @PostMapping("/init_condition")
    @ApiOperation(value = "初始化发号器配置")
    public ResultModel intiCondition(@RequestBody ConfigDatImpulseSenderConditionCommand command) throws ServiceException {
        return service.intiCondition(command);
    }

}